﻿#include <iostream>
#include "XMsgServer.h"
#include <sstream>
#include<chrono>
using namespace std;

int main()
{
	XMsgServer server;
	//线程已经启动
	server.Start();
	for (int i = 0; i < 10; i++) {
		stringstream ss;
		ss << " msg :" << i + 1;
		server.SendMsg(ss.str());
		this_thread::sleep_for(500ms);
	}
	server.Stop();
	return 0;
}
